From: Colin Walters Date: Wed, 29 Mar 2017 14:24:35 +0000 (-0400) Subject: libutil: Delete some unused error handling APIs X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~39^2~12 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/%22bookmarks:/?a=commitdiff_plain;h=ee626c2654b877f5ae6771933330c381efa7e802;p=ostree.git libutil: Delete some unused error handling APIs The first one is better as `err`, the second might as well just call `err` too. Closes: #767 Approved by: jlebon --- diff --git a/src/libotutil/ot-unix-utils.c b/src/libotutil/ot-unix-utils.c index 4f659a27..46dd346e 100644 --- a/src/libotutil/ot-unix-utils.c +++ b/src/libotutil/ot-unix-utils.c @@ -121,17 +121,3 @@ ot_util_path_split_validate (const char *path, out: return ret; } - -void -ot_util_fatal_literal (const char *msg) -{ - g_printerr ("%s\n", msg); - exit (EXIT_FAILURE); -} - -void -ot_util_fatal_gerror (GError *error) -{ - g_assert (error != NULL); - ot_util_fatal_literal (error->message); -} diff --git a/src/libotutil/ot-unix-utils.h b/src/libotutil/ot-unix-utils.h index 0547a54e..817e6fd3 100644 --- a/src/libotutil/ot-unix-utils.h +++ b/src/libotutil/ot-unix-utils.h @@ -36,10 +36,6 @@ G_BEGIN_DECLS -void ot_util_fatal_literal (const char *msg) G_GNUC_NORETURN; - -void ot_util_fatal_gerror (GError *error) G_GNUC_NORETURN; - gboolean ot_util_filename_validate (const char *name, GError **error); gboolean ot_util_path_split_validate (const char *path, GPtrArray **out_components, GError **error);